package com.wzh.yebServe.pojo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author wzh
 * @create 2022/11/16 12:41
 * @Description:
 */
@ApiModel(value = "职称对象")
@TableName("t_jobLevel")
@Data
@RequiredArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(of = "name")
public class JobLevel implements Serializable {
    private static final  long serialVersionUID=1L;

    @ApiModelProperty(value ="id")
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "职称名称")
    @Excel(name = "职称")
    @NonNull
    private String name;

    @ApiModelProperty(value = "职称等级")
    private String titleLevel;

    @JsonFormat(pattern = "yyyy-mm-dd",timezone = "Asia/shanghai")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "是否启用")
    private Boolean enabled;


}
